self.onmessage = function(e) {
    let imageData = e.data.imageData;
    // 处理图像数据
    self.postMessage({imageData: imageData});
}